package com.ruoyi.system.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Set;

/**
 * 企业项目成员对象 sys_company_member
 * 
 * @author ruoyi
 * @date 2023-06-09
 */
@ApiModel(value="企业项目成员")
public class SysCompanyMember extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 企业诊断项目成员 */
    @ApiModelProperty(value="企业诊断项目成员")
    private Long memberId;

    /** 企业id */
    @Excel(name = "企业id")
    @ApiModelProperty(value="企业id")
    private Long deptId;

    /** 用户id */
    @Excel(name = "用户id")
    @ApiModelProperty(value="用户id")
    private Long userId;

    /** 成员类型（组长/成员） */
    @Excel(name = "成员类型", readConverterExp = "组长/成员")
    @ApiModelProperty(value="成员类型（组长/成员）")
    private String memberType;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    private String nickName;

    private String phonenumber;

    private String sex;

    /** 部门IDs */
    @Excel(name = "部门IDs")
    @ApiModelProperty(name="deptIds", value="部门IDs")
    private Set<Long> deptIds;

    public void setMemberId(Long memberId) 
    {
        this.memberId = memberId;
    }

    public Long getMemberId() 
    {
        return memberId;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setMemberType(String memberType) 
    {
        this.memberType = memberType;
    }

    public String getMemberType() 
    {
        return memberType;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getPhonenumber() {
        return phonenumber;
    }

    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Set<Long> getDeptIds() {
        return deptIds;
    }

    public void setDeptIds(Set<Long> deptIds) {
        this.deptIds = deptIds;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("memberId", getMemberId())
            .append("deptId", getDeptId())
            .append("userId", getUserId())
            .append("memberType", getMemberType())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
